Skip to content

Conversation

@adpthegreat
Copy link
Contributor

@adpthegreat adpthegreat commented Oct 20, 2024

  • added poseidon close_account program to basics/close-program folder
  • updated dependencies to use latest versions of anchor
  • used pnpm in place of yarn, , replaced all instances of yarn with pnpm
  • wrote solana bankrun tests
  • ran pnpm fix
Screenshot 2024-10-29 at 11 22 14

Copy link

@Yangatech Yangatech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using u8 for the name field, consider using a String or a fixed-size byte array for more practical usage. Ensure the allocated account space matches the actual size needed for the UserAccount struct. Add logging with msg! to track key actions like account creation and closure.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storing the name as a u8 may limit usability; switching to a string or byte array would be better.

@adpthegreat

This comment was marked as abuse.

@Yangatech
Copy link

Yangatech commented Oct 22, 2024 via email

@heyAyushh heyAyushh added contribute:poseidon Adds a poseidon example contribution to the repository. close-account basics/close-account labels Nov 5, 2024
@heyAyushh heyAyushh closed this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

close-account basics/close-account contribute:poseidon Adds a poseidon example contribution to the repository.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants